<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;
use Illuminate\Support\Facades\Log;

class SyncWdtLogistics extends Command
{
    protected $signature = 'sync:wdt-logistics';
    protected $description = '同步旺店通物流信息到本地数据库';

    public function handle()
    {
        Log::info('test1111', ['test1111']);
        $sid = config('services.wdt.sid');
        $appkey = config('services.wdt.appkey');
        $secret = config('services.wdt.secret');
        $url = config('services.wdt.url');
        Log::info("sid", [$sid]);
        $c = new \WdtClient($sid, $appkey, $secret, $url . 'logistics.php');
        var_dump($c);die();
        $this->info('命令已执行');
    }
}